﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PluralSightTut
{
    class EventDelegates
    {
        private static string Name { get; set; }
        public EventDelegates()
        {

        }

        public EventDelegates(string name)
        {
            Name = name;
        }

        public static void Subscirber1(string name)
        {
            
            Console.WriteLine(name);
        }

        public static void Subscriber2(string name)
        {
            Console.WriteLine(name);
        }

        public static int Subsciber3()
        {
            return 3;
        }

        public static string Subsciber4()
        {
            return "Subsciber4";
        }

        public void Subscirber1NonStatic(string name)
        {
            
                Console.WriteLine(name);
        }

        public void Subscriber2NonStatic(string name)
        {
            if (Name == "Siam")
                Console.WriteLine(Name);
            else
                Console.WriteLine(name);
        }
    }
}
